﻿@model Planisoft.Entities.Dependiente

@{
    ViewBag.Title = "AgregarDependienteTest";
    Layout = "~/Views/Shared/Inicio.cshtml";
}

<h2>AgregarDependienteTest</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Dependiente</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdDependiente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdDependiente)
            @Html.ValidationMessageFor(model => model.IdDependiente)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdTrabajador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdTrabajador)
            @Html.ValidationMessageFor(model => model.IdTrabajador)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdEps)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdEps)
            @Html.ValidationMessageFor(model => model.IdEps)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.idUbiDpto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idUbiDpto)
            @Html.ValidationMessageFor(model => model.idUbiDpto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdUbiProv)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdUbiProv)
            @Html.ValidationMessageFor(model => model.IdUbiProv)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdUbiDtto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdUbiDtto)
            @Html.ValidationMessageFor(model => model.IdUbiDtto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdZona)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdZona)
            @Html.ValidationMessageFor(model => model.IdZona)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdVia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdVia)
            @Html.ValidationMessageFor(model => model.IdVia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NroDocDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NroDocDep)
            @Html.ValidationMessageFor(model => model.NroDocDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApPatDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApPatDep)
            @Html.ValidationMessageFor(model => model.ApPatDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApMatDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApMatDep)
            @Html.ValidationMessageFor(model => model.ApMatDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NombDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NombDep)
            @Html.ValidationMessageFor(model => model.NombDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechNacDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechNacDep)
            @Html.ValidationMessageFor(model => model.FechNacDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IndActivo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IndActivo)
            @Html.ValidationMessageFor(model => model.IndActivo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdTipoDocumento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdTipoDocumento)
            @Html.ValidationMessageFor(model => model.IdTipoDocumento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdVinculoFam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdVinculoFam)
            @Html.ValidationMessageFor(model => model.IdVinculoFam)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sexo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Sexo)
            @Html.ValidationMessageFor(model => model.Sexo)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
